Skip to content

Add docs for the Mime component #10886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Jan 15, 2019

@fabpot fabpot force-pushed the mime-component-docs branch from 913d8cf to 9c818ad Compare January 16, 2019 06:48
@fabpot fabpot force-pushed the mime-component-docs branch 3 times, most recently from def17b7 to 97e2b48 Compare January 16, 2019 08:03
@fabpot fabpot force-pushed the mime-component-docs branch from 97e2b48 to bd25312 Compare January 16, 2019 08:06
fabpot added a commit to symfony/symfony that referenced this pull request Jan 17, 2019
This PR was squashed before being merged into the 4.3-dev branch (closes #29896).

Discussion
----------

[Mime] Add the component

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #28832 #21985 makes #15460 trivial
| License       | MIT
| Doc PR        | symfony/symfony-docs#10886

This has been on my todo-list for X years :)

Commits
-------

bdca5d9 tweaked code
5268389 [Mime] added freedesktop as a source for mime types
74ca91d [Mime] added the component
d7ee0ec [HttpFoundation] updated File code
Instead of adding comments about possible changes, I've decided to commit them. Revert totally or partially if you disagree with them. Thanks!
@fabpot fabpot added the On hold label Jan 17, 2019
**Purpose**: Add a custom MIME type guesser to MimeTypes

To add a custom MIME type guesser - in addition to the core guessers - create a
class that implements :class:`Symfony\\Component\\Mime\\MimeTypes`, register it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it MimeTypesInterface ?

==================

The MIME component provides utilities related to MIME types, such as
guessing the MIME type of a given file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the scope of the component is just media types rather than MIME as a whole, could it be named as such instead?

@OskarStark
Copy link
Contributor

Looks like the code was merged, can we merge this too and announce this new component?

@javiereguiluz
Copy link
Member

Closing because we've added all these contents to #11280, which documents the entire Mime component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants